package io
{
	import flash.net.registerClassAlias;
	import mx.utils.UIDUtil;
	
	[Bindable]
	[RemoteClass(alias="com.yt.server.example.People")]
	public class People
	{
		private var _id:String = UIDUtil.createUID();
		
		private var _x:Number;
		
		private var _y:Number;
		
		private var _action:Number = 1;//( 0 --- Move ,1 --- Add)
		
		public function People()
		{
			registerClassAlias();
		}
		
		private static var registed:Boolean = false;
		
		public function get action():Number
		{
			return _action;
		}
		
		public function set action(value:Number):void
		{
			_action = value;
		}
		
		public function get y():Number
		{
			return _y;
		}
		
		public function set y(value:Number):void
		{
			_y = value;
		}
		
		public function get x():Number
		{
			return _x;
		}
		
		public function set x(value:Number):void
		{
			_x = value;
		}
		
		public function get id():String
		{
			return _id;
		}
		
		public function set id(value:String):void
		{
			_id = value;
		}
		
		public static function registerClassAlias():void {
			if(registed == false) {
				flash.net.registerClassAlias("com.yt.server.example.People", People);
				registed = true;
			}
		}
	}
}